<template>
  <div class="page-header">
    {{ $t('LatestTime') }} {{ lastedTime }}
    <el-tooltip class="box-item" effect="dark" :content="$t('refresh')" placement="top">
      <el-button icon="Refresh" @click="refreshData" circle />
    </el-tooltip>
  </div>
</template>

<script setup>
const emit = defineEmits(['refresh'])
const props = defineProps({
  lastedTime: {
    type: String,
    default: '',
  },
})

const refreshData = () => {
  emit('refresh')
}
</script>

<style lang="scss" scoped>
.page-header {
  height: 40px;
  font-size: 18px;
  color: #f04134;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}
</style>
